package Home;

import mylooks.greenteam.DatabaseHelper;
import mylooks.greenteam.R;
import mylooks.greenteam.Registration.User;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.TextView;

public class ProfileFragment extends Fragment 
{
	public static DatabaseHelper dbH;
	public static User u;
	// onCreate
	@Override
	public void onCreate(Bundle savedInstanceState) 
	{
		super.onCreate(savedInstanceState);
	}

	// onActivityCreated
	@Override
	public void onActivityCreated(Bundle savedInstanceState) 
	{
		super.onActivityCreated(savedInstanceState);
	}

	// onCreateView
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) 
	{
		dbH=new DatabaseHelper(getActivity());
		u=dbH.GetUser();
		View layoutView = inflater.inflate(R.layout.home_profile, container, false);
		TextView dummyTextView = (TextView) layoutView.findViewById(R.id.profile_name);
		dummyTextView.setText(u.getName());	
		return layoutView;
	}			
	
}
